diff options
Diffstat (limited to 'src/pages/portfolio/[id].astro')
| -rw-r--r-- | src/pages/portfolio/[id].astro | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/src/pages/portfolio/[id].astro b/src/pages/portfolio/[id].astro deleted file mode 100644 index 7424b91..0000000 --- a/src/pages/portfolio/[id].astro +++ /dev/null @@ -1,17 +0,0 @@ ---- -import type { GetStaticPaths } from "astro"; -import { getCollection } from "astro:content"; -import PortfolioSingleLayout from "@/layouts/PortfolioSingleLayout.astro"; - -export const getStaticPaths: GetStaticPaths = async () => { - const entries = await getCollection("portfolio"); - return entries.map((entry: any) => ({ - params: { id: entry.id }, - props: { entry }, - })); -}; - -const { entry } = Astro.props; ---- - -<PortfolioSingleLayout entry={entry} /> |
